<?php
	$host = "127.0.0.1";
	$db_user = "root";
	$db_pwd = "";
	$db_name = "ivy";

	$db = new mysqli($host, $db_user, $db_pwd, $db_name);
	if($db->connect_errno <>0){
		die("连接失败");
	} 
	$db->query("set names utf8");